<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <LINK href="${base}/template/admin/source/set_files/bootstrap_min.css" rel="stylesheet" type="text/css" media="all">
        <LINK href="${base}/template/admin/source/set_files/style.css" rel="stylesheet" type="text/css" media="all">
        <LINK href="${base}/template/admin/source/set_files/inside.css" rel="stylesheet" type="text/css" media="all">
        <LINK href="${base}/template/admin/source/set_files/datepicker.css" rel="stylesheet" type="text/css" media="all">
        <LINK href="${base}/template/admin/source/set_files/daterangepicker.css" rel="stylesheet" type="text/css" media="all">
        <SCRIPT src="${base}/template/admin/source/set_files/jQuery.js" type="text/javascript"></SCRIPT>
        <SCRIPT src="${base}/template/admin/source/set_files/jquery_form_min.js" type="text/javascript"></SCRIPT>
        <SCRIPT src="${base}/template/admin/source/set_files/bootstrap_min.js" type="text/javascript"></SCRIPT>
        <SCRIPT src="${base}/template/admin/source/set_files/jquery_validate_min.js" type="text/javascript"></SCRIPT>
        <SCRIPT src="${base}/template/admin/source/set_files/jquery_validate_methods.js" type="text/javascript"></SCRIPT>
        <SCRIPT src="${base}/template/admin/source/set_files/jquery_jplayer_min.js" type="text/javascript"></SCRIPT>
        <SCRIPT src="${base}/template/admin/source/set_files/jquery_mb_miniPlayer.js" type="text/javascript"></SCRIPT>
        <SCRIPT src="${base}/template/admin/source/set_files/zeroclipboard_min.js" type="text/javascript"></SCRIPT>
        <script type="text/javascript" src="${base}/template/common/js/include.js"></script>
		<script type="text/javascript" src="${base}/template/common/js/jquery.pager.js"></script>
		<script type="text/javascript" src="${base}/template/admin/js/base.js"></script>
		<script type="text/javascript" src="${base}/template/admin/js/admin.js"></script>
        <style type="text/css">
            .dropdown-submenu:hover>.dropdown-menu{display:none}
        </style>
    </head>
    
    <body>
		<form id="listForm" action="admin!list.shtml" method="post">
        <div id="main">
            <div class="container-fluid">
                <div class="row-fluid">
                    <div class="span12">
                        <div class="box">

                            <div class="box-title">
                                <div class="span8">
                                    <h3>
										管理员列表
                                    </h3>
                                </div>
                                <div class="span4" style="width:100%">
                                    <div class="form-horizontal">
										<input type="hidden" id="order" name="pager.order" value="${(pager.order)!}"/>
										<input type="hidden" id="orderBy" name="pager.orderBy" value="${(pager.orderBy)!}"/>
                                    	<select name="pager.searchBy" class="input-small">
											<option value="username"<#if pager.searchBy == "username"> selected</#if>>
												用户名
											</option>
											<option value="name"<#if pager.searchBy == "name"> selected</#if>>
												姓名
											</option> 
										</select>
                                    	<input type="text" name="pager.keyword" class="input-small-z" value="${(pager.keyword)!}" placeholder="请输入搜索值">
										<button class="btn" id="searchButton">
                                          	  查询
                                        </button>
                                     		每页显示: 
										<select name="pager.pageSize" id="pageSize" class="input-small">
											<option value="10"<#if pager.pageSize == 10> selected</#if>>
												10条
											</option>
											<option value="20"<#if pager.pageSize == 20> selected</#if>>
												20条
											</option>
											<option value="50"<#if pager.pageSize == 50> selected</#if>>
												50条
											</option>
											<option value="100"<#if pager.pageSize == 100> selected</#if>>
												100条
											</option>
										</select>
                                    </div>
                                </div>
                            </div>
                            <div class="box-content nozypadding">
                                <div class="row-fluid">
                                    <div class="span8 control-group">
                                        <div class="span3">
                                            <a class="btn" style="margin-right:5px;" href="admin!add.shtml">
												添加
                                            </a>
                                            <a class="btn" style="margin-right:5px;" href="javascript:location.reload();">
												刷新
                                            </a>
                                            <a class="btn" style="margin-right:5px;" id="deleteButton" class="formButton" url="admin!delete.shtml" title="删除">
                                            	删除
                                            </a>
                                        </div>
                                    </div>
                                </div>
                                <div class="row-fluid dataTables_wrapper">
                                    <table id="listTable" class="table table-hover table-nomargin table-bordered usertable dataTable">
                                        <thead>
                                            <tr>
												<th class="check">
													<input type="checkbox" class="allCheck" />
												</th>
												<th>
													<a href="javascript:void(0);" class="sort" name="username" hidefocus>用户名</a>
												</th>
												<th>
													<a href="javascript:void(0);" class="sort" name="email" hidefocus>E-mail</a>
												</th>
												<th>
													<a href="javascript:void(0);" class="sort" name="name" hidefocus>姓名</a>
												</th>
												<th>
													<a href="javascript:void(0);" class="sort" name="createDate" hidefocus>创建日期</a>
												</th>
												<th>
													<span>操作</span>
												</th>
											</tr>
                                        </thead>
                                        <tbody>
                                            <#list pager.result as admin>
												<tr>
													<td>
														<input type="checkbox" name="ids" value="${admin.id}" />
													</td>
													<td>
														${admin.username}
													</td>
													<td>
														${admin.email}
													</td>
													<td>
														${(admin.name)!}
													</td>
													<td>
														<span title="${admin.createDate?string("yyyy-MM-dd HH:mm:ss")}">${admin.createDate}</span>
													</td>
													<td>
														<a href="admin!edit.shtml?id=${admin.id}" title="编辑">[编辑]</a>
														<a class="deleteObj" href="javascript:void(0);" data="admin!delete.shtml?ids=${admin.id}" title="删除">[删除]</a>
													</td>
												</tr>
											</#list>
                                        </tbody>
                                    </table>
                                    <#if (pager.pageCount > 1)>
                                    <#include "/WEB-INF/template/admin/pager.ftl" />
                                    </#if>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div id="fallr-overlay">
        </div>
		</form>
    </body>

</html>